package com.qianxiwitpatients.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qianxi.wit.pojo.TbDiagnosticLogout;
import com.qianxi.wit.pojo.TbSufferer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("qianxiwit-service")
public interface TbSuffererService {

    @GetMapping("/findAllpatient")
    public Page<TbSufferer> findAll(@RequestParam(value = "page") int page,
                                    @RequestParam(value = "pageSize") int pageSize);

    @GetMapping("/findAllPatientId")
    public Page<TbDiagnosticLogout> findSufferer(@RequestParam(value = "page") int page,
                                                 @RequestParam(value = "pageSize") int pageSize,
                                                 @RequestParam(value = "id") long id);
    @GetMapping("/findbyid/{id}")
    TbDiagnosticLogout findbyid(@PathVariable int id);
}
